//
//  ActivityTableViewCell.m
//  UIhomework豆瓣
//
//  Created by dllo on 15/12/26.
//  Copyright © 2015年 lanou3g. All rights reserved.
//

#import "ActivityTableViewCell.h"

@implementation ActivityTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)dealloc{
    [_imgView release];
    [_label release];
    [_view release];
    [_imgViewSmall1 release];
    [_labelSmall1 release];
    [_imgViewSmall2 release];
    [_labelSmall2 release];
    [_imgViewSmall3 release];
    [_labelSmall3 release];
    [_labelDown1 release];
    [_labelDownText1 release];
    [_labelDown2 release];
    [_labelDownText2 release];
    [_imgViewRight release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}
- (void)createCell{
    self.imgView = [[UIImageView alloc] init];
    [self.contentView addSubview:_imgView];
    [_imgView release];
    self.label = [[UILabel alloc] init];
    [_imgView addSubview:_label];
    [_label release];
    self.view = [[UIView alloc] init];
    [_imgView addSubview:_view];
    [_view release];
    self.imgViewSmall1 = [[UIImageView alloc] init];
    [_view addSubview:_imgViewSmall1];
    [_imgViewSmall1 release];
    self.labelSmall1 = [[UILabel alloc] init];
    [_view addSubview:_labelSmall1];
    [_labelSmall1 release];
    self.imgViewSmall2 = [[UIImageView alloc] init];
    [_view addSubview:_imgViewSmall2];
    [_imgViewSmall2 release];
    self.labelSmall2 = [[UILabel alloc] init];
    [_view addSubview:_labelSmall2];
    [_labelSmall2 release];
    self.imgViewSmall3 = [[UIImageView alloc] init];
    [_view addSubview:_imgViewSmall3];
    [_imgViewSmall3 release];
    self.labelSmall3 = [[UILabel alloc] init];
    [_view addSubview:_labelSmall3];
    [_labelSmall3 release];
    self.labelDown1 = [[UILabel alloc] init];
    [_view addSubview:_labelDown1];
    [_labelDown1 release];
    self.labelDownText1 = [[UILabel alloc] init];
    [_view addSubview:_labelDownText1];
    [_labelDownText1 release];
    self.labelDown2 = [[UILabel alloc] init];
    [_view addSubview:_labelDown2];
    [_labelDown2 release];
    self.labelDownText2 = [[UILabel alloc] init];
    [_view addSubview:_labelDownText2];
    [_labelDownText2 release];
    self.imgViewRight = [[UIImageView alloc] init];
    [_view addSubview:_imgViewRight];
    [_imgViewRight release];
}
-(void)layoutSubviews{
    [super layoutSubviews];
    _imgView.frame = CGRectMake(5, 5, 400, 250);
    _imgView.backgroundColor = [UIColor clearColor];
    _label.frame = CGRectMake(10, 3, 200, 20);
    _label.backgroundColor = [UIColor clearColor];
    _view.frame = CGRectMake(10, 30, 375, 205);
    _view.backgroundColor = [UIColor whiteColor];
    _imgViewSmall1.frame = CGRectMake(10, 10, 20, 20);
    _imgViewSmall1.backgroundColor = [UIColor clearColor];
    _labelSmall1.frame = CGRectMake(35, 10, 240, 20);
    _labelSmall1.backgroundColor = [UIColor clearColor];
    _imgViewSmall2.frame = CGRectMake(10, 40, 20, 20);
    _imgViewSmall2.backgroundColor = [UIColor clearColor];
    _labelSmall2.frame = CGRectMake(40, 40, 240, 20);
    _labelSmall2.backgroundColor = [UIColor clearColor];
    _imgViewSmall3.frame = CGRectMake(10, 70, 20, 20);
    _imgViewSmall3.backgroundColor = [UIColor clearColor];
    _labelSmall3.frame = CGRectMake(40, 70, 240, 20);
    _labelSmall3.backgroundColor = [UIColor clearColor];
    _labelDown1.frame = CGRectMake(10, 150, 70, 20);
    _labelDown1.backgroundColor = [UIColor clearColor];
    _labelDownText1.frame = CGRectMake(66, 150, 40, 20);
    _labelDownText1.backgroundColor = [UIColor clearColor];
    _labelDownText1.textColor = [UIColor redColor];
    _labelDown2.frame = CGRectMake(120, 150, 45, 20);
    _labelDown2.backgroundColor = [UIColor clearColor];
    _labelDownText2.frame = CGRectMake(158, 150, 125, 20);
    _labelDownText2.backgroundColor = [UIColor clearColor];
    _labelDownText2.textColor = [UIColor redColor];
    _imgViewRight.frame = CGRectMake(280, 5, 93, 190);
    _imgViewRight.backgroundColor = [UIColor clearColor];
    
}

@end
